package com.db.stockexchange.common.parsing;

import com.db.stockexchange.common.messages.server.RejectedMessage;

@SuppressWarnings("serial")
public class FIXParseException extends Exception {
	private RejectedMessage rejectMessage;
	

	public FIXParseException(RejectedMessage message, Throwable cause) {
		super(cause);
		this.rejectMessage = message;
	}

	public FIXParseException(RejectedMessage message) {
		super();
		this.rejectMessage = message;
	}

	public RejectedMessage getRejectedMessage() {
		return rejectMessage;
	}
}
